package com.cpit.platform.common.dao;
/*
 * 计算用类
 * */
public class Projections {
	public static Projection Max(String fieldName){
		return new Projection(fieldName,  Criterion.Projection.MAX);
	}
	public static Projection Length(String fieldName){
		return new Projection(fieldName, Criterion.Projection.LENGTH);
	}
	public static Projection Min(String fieldName){
		return new Projection(fieldName, Criterion.Projection.MIN);
	}
	public static Projection Sum(String fieldName){
		return new Projection(fieldName, Criterion.Projection.SUM);
	}
}
